Nevron Open Vision Documentation
Nevron.Nov.Text Namespace / NEncoding Class / GetByteCount Method / GetByteCount(Char[],Int32,Int32) Method
The characters to encode.
The char index at which to start encoding.
The number of chars to encode.


In This Topic
    GetByteCount(Char[],Int32,Int32) Method
    In This Topic
    Calculates the number of bytes produced by encoding a set of characters from the specified string.
    Syntax
    'Declaration
     
    
    Public Overloads MustOverride Function GetByteCount( _
       ByVal str() As System.Char, _
       ByRef charIndex As System.Integer, _
       ByVal charCount As System.Integer _
    ) As System.Integer
    'Usage
     
    
    Dim instance As NEncoding
    Dim str() As System.Char
    Dim charIndex As System.Integer
    Dim charCount As System.Integer
    Dim value As System.Integer
     
    value = instance.GetByteCount(str, charIndex, charCount)
    public abstract System.int GetByteCount( 
       System.char[] str,
       ref System.int charIndex,
       System.int charCount
    )

    Parameters

    str
    The characters to encode.
    charIndex
    The char index at which to start encoding.
    charCount
    The number of chars to encode.

    Return Value

    The number of resulting bytes.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also